{extend name='admin@main'}

{block name="button"}
{if auth("admin/extension_user/extensionUserAdd")}
<button data-modal='{:url("extensionUserAdd")}' data-title="添加人员" class='layui-btn layui-btn-sm layui-btn-primary'>添加人员</button>
{/if}
{/block}

{block name="content"}
<div class="think-box-shadow">
    {include file='extension_user/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        <thead>
            <tr>
                <th>ID</th>
                <th>名称</th>
                <th>所属分组</th>
                <th>今日推广</th>
                <th>推广总量</th>
                <th>认证通过</th>
                <th>未认证</th>
                <th>待认证</th>
                <th>认证拒绝</th>
                <th>添加时间</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td>{$vo.id}</td>
            <td>{$vo.name}</td>
            <td>{$vo.group_name}</td>
            <td>{$vo.today_num}</td>
            <td>{$vo.total_num}</td>
            <td>{$vo.pass_num}</td>
            <td>{$vo.no_num}</td>
            <td>{$vo.pre_num}</td>
            <td>{$vo.deny_num}</td>
            <td>{$vo.created_at|date='Y-m-d'}</td>
            <td>
            {if auth("admin/extension_user/edit")}
            <a data-title="编辑分类" class="layui-btn layui-btn-sm" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
            {/if}
            {if auth("admin/extension_user/qrcode")}
            <a data-title="查看推广码" class="layui-btn layui-btn-sm"  data-modal='{:url("qrcode")}?id={$vo.id}'>查看推广码</a>
            {/if}
            </td>
        </tr>
        {/foreach}
        
        
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
<script type="text/javascript">
    $(".delete").click(function(){
      alert("skdjf");
    })
</script>
{/block}
